package ${module};

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*${classdescription}
*FreeMaker Template自动生成代码
*/
@TestSuite
public class ${class}{
	private static ${base}Bean ${base?lower_case}Bean;
	private static ${base}Call ${base?lower_case}Call;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("${classdescription}");
	}

	@Before
	public void caseUp() {
		${base?lower_case}Bean=new ${base}Bean();
		${base?lower_case}Call=new ${base}Call();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(${base?lower_case}Call.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
<#list properties as prop>
	@Test
	@Category({${prop.level}.class})
	@TestCase
	public void ${prop.testcase}() {
		Logger.start(true,"${prop.description}");
		try {
			//TODO 补全case代码
			org.junit.Assert.fail();
			${base?lower_case}Call.setData(${base?lower_case}Bean);
			${base?lower_case}Call.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
</#list>
}